dojo.provide("uws.drawing.activity.Stop");
dojo.require('uws.drawing.Component');

dojo.declare('uws.drawing.activity.Stop',uws.drawing.Component,{
	constructor: function(surface,id,dx,dy, sortOrder,label,fromDS){
		this.center_x = 9;
		this.center_y = 9;
		this.label = label;
		this.sortOrder = sortOrder;
		
		if(fromDS){
			dx+=this.center_x;
			dy+=this.center_y;
		}
		
		//connectors
		this.top_con=this.connectors_shape_group.createCircle({
			cx:0,
			cy:-18,
			r:3
		}).setStroke("white").setFill("white");
		
		this.bottom_con=this.connectors_shape_group.createCircle({
			cx:0,
			cy:18,
			r:3
		}).setStroke("white").setFill("white");
		
		this.left_con=this.connectors_shape_group.createCircle({
			cx:-18,
			cy:0,
			r:3
		}).setStroke("white").setFill("white");
		
		this.right_con=this.connectors_shape_group.createCircle({
			cx:18,
			cy:0,
			r:3
		}).setStroke("white").setFill("white");
		
		//shape
		this.actual_shape_group.createCircle({
			cx:0,
			cy:0,
			r:18
		}).setStroke("black").setFill("white");
		
		this.actual_shape_group.createCircle({
			cx:0,
			cy:0,
			r:14
		}).setStroke("black").setFill("black");
		
		this._postCreate(dx, dy);
	},
	applyProperties:function(properties){
		
	}
});